package com.tyf.entity;
/**
 * 员工实体类
 * @author TYF
 *
 */
public class Emp {
private int id;
private String name;
private String sex;
private int sal;
private int did;//所属部门编号
//额外的属性（来自部门表）
private String deptName;//部门名称
//数据字段----实体类的属性
private String url;//图片
public int getId() {
	return id;
}
public void setId(int id) {
	this.id = id;
}
public String getName() {
	return name;
}
public void setName(String name) {
	this.name = name;
}
public String getSex() {
	return sex;
}
public void setSex(String sex) {
	this.sex = sex;
}
public int getSal() {
	return sal;
}
public void setSal(int sal) {
	this.sal = sal;
}

public String getUrl() {
	return url;
}
public void setUrl(String url) {
	this.url = url;
}
public String getDeptName() {
	return deptName;
}
public void setDeptName(String deptName) {
	this.deptName = deptName;
}
public int getDid() {
	return did;
}
public void setDid(int did) {
	this.did = did;
}


public Emp(int id, String name, String sex, int sal, int did, String deptName, String url) {
	super();
	this.id = id;
	this.name = name;
	this.sex = sex;
	this.sal = sal;
	this.did = did;
	this.deptName = deptName;
	this.url = url;
}

public Emp(int id, String name, String sex, int sal, int did, String deptName) {
	super();
	this.id = id;
	this.name = name;
	this.sex = sex;
	this.sal = sal;
	this.did = did;
	this.deptName = deptName;
}
public Emp() {
	super();
	// TODO Auto-generated constructor stub
}
@Override
public String toString() {
	return "Emp [id=" + id + ", name=" + name + ", sex=" + sex + ", sal=" + sal + ", did=" + did + ", deptName="
			+ deptName + ", url=" + url + "]";
}


}
